import layout from '@/layout'
export default {
  path: '/business',
  component: layout,
  meta: {
    title: '业务管理管理',
    icon: 'el-icon-files'
  },
  children: [
    {
      path: '/orderManagement', // 二级路由的路径，
      name: 'orderManagement',
      component: () => import('@/views/businessManagement/orderManagement.vue'),
      meta: {
        title: '订单管理',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/wayManagement', // 二级路由的路径，
      name: 'wayManagement',
      component: () => import('@/views/businessManagement/wayManagement.vue'),
      meta: {
        title: '运单管理',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/businessManagement/business-detail/:id?',
      name: 'business-details',
      component: () => import('@/views/businessManagement/business-detail.vue'),
      hidden: true,
      meta: {
        title: '订单详情'
      }
    },
    {
      path: '/businessManagement/way-detail/:id?',
      name: 'way-detail',
      component: () => import('@/views/businessManagement/way-detail.vue'),
      hidden: true,
      meta: {
        title: '运单详情'
      }
    }
  ]
}
